import weatherRequest from '@/utils/weatherRequest'

export function nowWeather() {
  return weatherRequest({
    url: '/weather/now',
    method: 'get',
    params: {
      location: '101030100',
      key: '9623b06a87c748f5a4fbb069abeb9631'
    }
  })
}
export function weatherReport() {
  return weatherRequest({
    url: '/weather/3d',
    method: 'get',
    params: {
      location: '101030100',
      key: '9623b06a87c748f5a4fbb069abeb9631'
    }
  })
}
// export function getLocalId(query) {
//   return weatherRequest({
//     url: 'https://geoapi.qweather.com/v2/city/lookup',
//     method: 'get',
//     headers: {
//       'Access-Control-Allow-Origin': '*',
//       'Access-Control-Allow-Methods': 'GET,PUT,POST,DELETE,PATCH,OPTIONS'
//     },
//     params: {
//       location: query.location,
//       key: '9623b06a87c748f5a4fbb069abeb9631'
//     }
//   })
// }

